﻿/*------------------------------------------------
// File Description: s_model_el1 DataBase Entity
// Author:			 Crane
// Create Time:		 2021-05-11 12:15:52
//------------------------------------------------*/

using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.OldMes.DataAccess.Entity
{
    /// <summary>
    /// 
    /// </summary>
    [Table("s_model_el1")]
    public class ModelEl1
    {
        private string _solar_no = string.Empty;
        private string _work_order = string.Empty;
        private string _weld_machine = string.Empty;
        private string _check_level = string.Empty;
        private string _bad_reason = string.Empty;
        private string _bad_size = string.Empty;
        private string _set_op1 = string.Empty;
        private string _set_op2 = string.Empty;
        private string _set_op3 = string.Empty;
        private string _set_class = string.Empty;
        private string _set_no = string.Empty;

        #region Public Property

        ///<Summary>
        /// id
        ///</Summary>
        public int id { get; set; }

        ///<Summary>
        /// solar_no
        ///</Summary>
        public string solar_no
        {
            get { return string.IsNullOrWhiteSpace(_solar_no) ? string.Empty : _solar_no; }
            set { _solar_no = value; }
        }

        ///<Summary>
        /// work_order
        ///</Summary>
        public string work_order
        {
            get { return string.IsNullOrWhiteSpace(_work_order) ? string.Empty : _work_order; }
            set { _work_order = value; }
        }

        ///<Summary>
        /// in_time
        ///</Summary>
        public int? in_time { get; set; }

        ///<Summary>
        /// weld_machine
        ///</Summary>
        public string weld_machine
        {
            get { return string.IsNullOrWhiteSpace(_weld_machine) ? string.Empty : _weld_machine; }
            set { _weld_machine = value; }
        }

        ///<Summary>
        /// check_level
        ///</Summary>
        public string check_level
        {
            get { return string.IsNullOrWhiteSpace(_check_level) ? string.Empty : _check_level; }
            set { _check_level = value; }
        }

        ///<Summary>
        /// bad_reason
        ///</Summary>
        public string bad_reason
        {
            get { return string.IsNullOrWhiteSpace(_bad_reason) ? string.Empty : _bad_reason; }
            set { _bad_reason = value; }
        }

        ///<Summary>
        /// bad_size
        ///</Summary>
        public string bad_size
        {
            get { return string.IsNullOrWhiteSpace(_bad_size) ? string.Empty : _bad_size; }
            set { _bad_size = value; }
        }

        ///<Summary>
        /// set_op1
        ///</Summary>
        public string set_op1
        {
            get { return string.IsNullOrWhiteSpace(_set_op1) ? string.Empty : _set_op1; }
            set { _set_op1 = value; }
        }

        ///<Summary>
        /// set_op2
        ///</Summary>
        public string set_op2
        {
            get { return string.IsNullOrWhiteSpace(_set_op2) ? string.Empty : _set_op2; }
            set { _set_op2 = value; }
        }

        ///<Summary>
        /// set_op3
        ///</Summary>
        public string set_op3
        {
            get { return string.IsNullOrWhiteSpace(_set_op3) ? string.Empty : _set_op3; }
            set { _set_op3 = value; }
        }

        ///<Summary>
        /// set_class
        ///</Summary>
        public string set_class
        {
            get { return string.IsNullOrWhiteSpace(_set_class) ? string.Empty : _set_class; }
            set { _set_class = value; }
        }

        ///<Summary>
        /// set_no
        ///</Summary>
        public string set_no
        {
            get { return string.IsNullOrWhiteSpace(_set_no) ? string.Empty : _set_no; }
            set { _set_no = value; }
        }

        ///<Summary>
        /// set_time
        ///</Summary>
        public DateTime? set_time { get; set; }

        ///<Summary>
        /// test_qty
        ///</Summary>
        public int? test_qty { get; set; }
        #endregion
    }

    public partial class OldMESContext
    {
        /// <summary>
        /// 
        /// </summary>
        public virtual DbSet<ModelEl1> ModelEl1s { get; set; }
    }
}